﻿                          
   using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using KDS.Mes.Mes.TestImss;

namespace KDS.Mes.Mes.TestImss.EntityMapper.TestImss
{

	/// <summary>
    /// IMS检测数据表的数据配置文件
    /// </summary>
    public class TestImsCfg : EntityTypeConfiguration<TestIms>
    {
		/// <summary>
        ///  构造方法[默认链接字符串< see cref = "MesDbContext" /> ]
        /// </summary>
		public TestImsCfg ()
		{
		            ToTable("TestIms", MesConsts.SchemaName.Basic);
 
      //todo: 需要将以下文件注入到MesDbContext中

  //		public IDbSet<TestIms> TestImss { get; set; }
   //		 modelBuilder.Configurations.Add(new TestImsCfg());




		    // 线体
			Property(a => a.LINE).HasMaxLength(20);
		    // 工位
			Property(a => a.STATION_NO).HasMaxLength(20);
		    // 座椅条码
			Property(a => a.SEAT_ID).HasMaxLength(20);
		    // RESULT
			Property(a => a.RESULT).HasMaxLength(20);
		    // MEMORY1
			Property(a => a.MEMORY1).HasMaxLength(20);
		    // MEMORY2
			Property(a => a.MEMORY2).HasMaxLength(20);
		    // EASY_ACCESS
			Property(a => a.EASY_ACCESS).HasMaxLength(20);
		    // LIMIT_SLIDE
			Property(a => a.LIMIT_SLIDE).HasMaxLength(20);
		    // LIMIT_RECL
			Property(a => a.LIMIT_RECL).HasMaxLength(20);
		    // LIMIT_FRONT
			Property(a => a.LIMIT_FRONT).HasMaxLength(20);
		    // LIMIT_REAR
			Property(a => a.LIMIT_REAR).HasMaxLength(20);
		}
    }
}